package com.zjxd.business.web.model.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TAResourceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TAResourceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andResourceIdIsNull() {
            addCriterion("resourceid is null");
            return (Criteria) this;
        }

        public Criteria andResourceIdIsNotNull() {
            addCriterion("resourceid is not null");
            return (Criteria) this;
        }

        public Criteria andResourceIdEqualTo(String value) {
            addCriterion("resourceid =", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdNotEqualTo(String value) {
            addCriterion("resourceid <>", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdGreaterThan(String value) {
            addCriterion("resourceid >", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdGreaterThanOrEqualTo(String value) {
            addCriterion("resourceid >=", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdLessThan(String value) {
            addCriterion("resourceid <", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdLessThanOrEqualTo(String value) {
            addCriterion("resourceid <=", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdLike(String value) {
            addCriterion("resourceid like", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdNotLike(String value) {
            addCriterion("resourceid not like", value, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdIn(List<String> values) {
            addCriterion("resourceid in", values, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdNotIn(List<String> values) {
            addCriterion("resourceid not in", values, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdBetween(String value1, String value2) {
            addCriterion("resourceid between", value1, value2, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceIdNotBetween(String value1, String value2) {
            addCriterion("resourceid not between", value1, value2, "resourceId");
            return (Criteria) this;
        }

        public Criteria andResourceNameIsNull() {
            addCriterion("resourcename is null");
            return (Criteria) this;
        }

        public Criteria andResourceNameIsNotNull() {
            addCriterion("resourcename is not null");
            return (Criteria) this;
        }

        public Criteria andResourceNameEqualTo(String value) {
            addCriterion("resourcename =", value, "resourceName");
            return (Criteria) this;
        }

        public Criteria andResourceNameNotEqualTo(String value) {
            addCriterion("resourcename <>", value, "resourceName");
            return (Criteria) this;
        }

        public Criteria andResourceNameGreaterThan(String value) {
            addCriterion("resourcename >", value, "resourceName");
            return (Criteria) this;
        }

        public Criteria andResourceNameGreaterThanOrEqualTo(String value) {
            addCriterion("resourcename >=", value, "resourceName");
            return (Criteria) this;
        }

        public Criteria andResourceNameLessThan(String value) {
            addCriterion("resourcename <", value, "resourceName");
            return (Criteria) this;
        }

        public Criteria andResourceNameLessThanOrEqualTo(String value) {
            addCriterion("resourcename <=", value, "resourceName");
            return (Criteria) this;
        }

        public Criteria andResourceNameLike(String value) {
            addCriterion("resourcename like", value, "resourceName");
            return (Criteria) this;
        }

        public Criteria andResourceNameNotLike(String value) {
            addCriterion("resourcename not like", value, "resourceName");
            return (Criteria) this;
        }

        public Criteria andResourceNameIn(List<String> values) {
            addCriterion("resourcename in", values, "resourceName");
            return (Criteria) this;
        }

        public Criteria andResourceNameNotIn(List<String> values) {
            addCriterion("resourcename not in", values, "resourceName");
            return (Criteria) this;
        }

        public Criteria andResourceNameBetween(String value1, String value2) {
            addCriterion("resourcename between", value1, value2, "resourceName");
            return (Criteria) this;
        }

        public Criteria andResourceNameNotBetween(String value1, String value2) {
            addCriterion("resourcename not between", value1, value2, "resourceName");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameIsNull() {
            addCriterion("resourcerealname is null");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameIsNotNull() {
            addCriterion("resourcerealname is not null");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameEqualTo(String value) {
            addCriterion("resourcerealname =", value, "resourceRealname");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameNotEqualTo(String value) {
            addCriterion("resourcerealname <>", value, "resourceRealname");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameGreaterThan(String value) {
            addCriterion("resourcerealname >", value, "resourceRealname");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameGreaterThanOrEqualTo(String value) {
            addCriterion("resourcerealname >=", value, "resourceRealname");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameLessThan(String value) {
            addCriterion("resourcerealname <", value, "resourceRealname");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameLessThanOrEqualTo(String value) {
            addCriterion("resourcerealname <=", value, "resourceRealname");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameLike(String value) {
            addCriterion("resourcerealname like", value, "resourceRealname");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameNotLike(String value) {
            addCriterion("resourcerealname not like", value, "resourceRealname");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameIn(List<String> values) {
            addCriterion("resourcerealname in", values, "resourceRealname");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameNotIn(List<String> values) {
            addCriterion("resourcerealname not in", values, "resourceRealname");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameBetween(String value1, String value2) {
            addCriterion("resourcerealname between", value1, value2, "resourceRealname");
            return (Criteria) this;
        }

        public Criteria andResourceRealnameNotBetween(String value1, String value2) {
            addCriterion("resourcerealname not between", value1, value2, "resourceRealname");
            return (Criteria) this;
        }

        public Criteria andResourceEnabledIsNull() {
            addCriterion("resourceenabled is null");
            return (Criteria) this;
        }

        public Criteria andResourceEnabledIsNotNull() {
            addCriterion("resourceenabled is not null");
            return (Criteria) this;
        }

        public Criteria andResourceEnabledEqualTo(Integer value) {
            addCriterion("resourceenabled =", value, "resourceEnabled");
            return (Criteria) this;
        }

        public Criteria andResourceEnabledNotEqualTo(Integer value) {
            addCriterion("resourceenabled <>", value, "resourceEnabled");
            return (Criteria) this;
        }

        public Criteria andResourceEnabledGreaterThan(Integer value) {
            addCriterion("resourceenabled >", value, "resourceEnabled");
            return (Criteria) this;
        }

        public Criteria andResourceEnabledGreaterThanOrEqualTo(Integer value) {
            addCriterion("resourceenabled >=", value, "resourceEnabled");
            return (Criteria) this;
        }

        public Criteria andResourceEnabledLessThan(Integer value) {
            addCriterion("resourceenabled <", value, "resourceEnabled");
            return (Criteria) this;
        }

        public Criteria andResourceEnabledLessThanOrEqualTo(Integer value) {
            addCriterion("resourceenabled <=", value, "resourceEnabled");
            return (Criteria) this;
        }

        public Criteria andResourceEnabledIn(List<Integer> values) {
            addCriterion("resourceenabled in", values, "resourceEnabled");
            return (Criteria) this;
        }

        public Criteria andResourceEnabledNotIn(List<Integer> values) {
            addCriterion("resourceenabled not in", values, "resourceEnabled");
            return (Criteria) this;
        }

        public Criteria andResourceEnabledBetween(Integer value1, Integer value2) {
            addCriterion("resourceenabled between", value1, value2, "resourceEnabled");
            return (Criteria) this;
        }

        public Criteria andResourceEnabledNotBetween(Integer value1, Integer value2) {
            addCriterion("resourceenabled not between", value1, value2, "resourceEnabled");
            return (Criteria) this;
        }

        public Criteria andResourceUrlIsNull() {
            addCriterion("resourceurl is null");
            return (Criteria) this;
        }

        public Criteria andResourceUrlIsNotNull() {
            addCriterion("resourceurl is not null");
            return (Criteria) this;
        }

        public Criteria andResourceUrlEqualTo(String value) {
            addCriterion("resourceurl =", value, "resourceUrl");
            return (Criteria) this;
        }

        public Criteria andResourceUrlNotEqualTo(String value) {
            addCriterion("resourceurl <>", value, "resourceUrl");
            return (Criteria) this;
        }

        public Criteria andResourceUrlGreaterThan(String value) {
            addCriterion("resourceurl >", value, "resourceUrl");
            return (Criteria) this;
        }

        public Criteria andResourceUrlGreaterThanOrEqualTo(String value) {
            addCriterion("resourceurl >=", value, "resourceUrl");
            return (Criteria) this;
        }

        public Criteria andResourceUrlLessThan(String value) {
            addCriterion("resourceurl <", value, "resourceUrl");
            return (Criteria) this;
        }

        public Criteria andResourceUrlLessThanOrEqualTo(String value) {
            addCriterion("resourceurl <=", value, "resourceUrl");
            return (Criteria) this;
        }

        public Criteria andResourceUrlLike(String value) {
            addCriterion("resourceurl like", value, "resourceUrl");
            return (Criteria) this;
        }

        public Criteria andResourceUrlNotLike(String value) {
            addCriterion("resourceurl not like", value, "resourceUrl");
            return (Criteria) this;
        }

        public Criteria andResourceUrlIn(List<String> values) {
            addCriterion("resourceurl in", values, "resourceUrl");
            return (Criteria) this;
        }

        public Criteria andResourceUrlNotIn(List<String> values) {
            addCriterion("resourceurl not in", values, "resourceUrl");
            return (Criteria) this;
        }

        public Criteria andResourceUrlBetween(String value1, String value2) {
            addCriterion("resourceurl between", value1, value2, "resourceUrl");
            return (Criteria) this;
        }

        public Criteria andResourceUrlNotBetween(String value1, String value2) {
            addCriterion("resourceurl not between", value1, value2, "resourceUrl");
            return (Criteria) this;
        }

        public Criteria andResourcePidIsNull() {
            addCriterion("resourcepid is null");
            return (Criteria) this;
        }

        public Criteria andResourcePidIsNotNull() {
            addCriterion("resourcepid is not null");
            return (Criteria) this;
        }

        public Criteria andResourcePidEqualTo(String value) {
            addCriterion("resourcepid =", value, "resourcePid");
            return (Criteria) this;
        }

        public Criteria andResourcePidNotEqualTo(String value) {
            addCriterion("resourcepid <>", value, "resourcePid");
            return (Criteria) this;
        }

        public Criteria andResourcePidGreaterThan(String value) {
            addCriterion("resourcepid >", value, "resourcePid");
            return (Criteria) this;
        }

        public Criteria andResourcePidGreaterThanOrEqualTo(String value) {
            addCriterion("resourcepid >=", value, "resourcePid");
            return (Criteria) this;
        }

        public Criteria andResourcePidLessThan(String value) {
            addCriterion("resourcepid <", value, "resourcePid");
            return (Criteria) this;
        }

        public Criteria andResourcePidLessThanOrEqualTo(String value) {
            addCriterion("resourcepid <=", value, "resourcePid");
            return (Criteria) this;
        }

        public Criteria andResourcePidLike(String value) {
            addCriterion("resourcepid like", value, "resourcePid");
            return (Criteria) this;
        }

        public Criteria andResourcePidNotLike(String value) {
            addCriterion("resourcepid not like", value, "resourcePid");
            return (Criteria) this;
        }

        public Criteria andResourcePidIn(List<String> values) {
            addCriterion("resourcepid in", values, "resourcePid");
            return (Criteria) this;
        }

        public Criteria andResourcePidNotIn(List<String> values) {
            addCriterion("resourcepid not in", values, "resourcePid");
            return (Criteria) this;
        }

        public Criteria andResourcePidBetween(String value1, String value2) {
            addCriterion("resourcepid between", value1, value2, "resourcePid");
            return (Criteria) this;
        }

        public Criteria andResourcePidNotBetween(String value1, String value2) {
            addCriterion("resourcepid not between", value1, value2, "resourcePid");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createdate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createdate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("createdate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("createdate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("createdate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("createdate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("createdate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("createdate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("createdate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("createdate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("createdate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("createdate not between", value1, value2, "createdate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}